<?php
include "includes/ui.php";

echo headerHTML("master","Leave Management");
?> 
<!-- Moldule: Popup -->
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><i class="icon-cog"></i> เพิ่มรายการ</h3>
        </div>

        <div class="modal-body">

                <form class="form-horizontal">

                        <div class="control-group">
                                <label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ประเภทพัสดุ</label>
                                <div class="controls">
                                     <select class="no-margin span8" tabindex="2" style="display: none;width:180px !important;">
									<option value="Category 1" selected>แสดงทั้งหมด</option>
									<option value="Category 1" >สินค้า</option>
									<option value="Category 2" >พัสดุคงทน</option>
									<option value="Category 2" >พัสดุสิ้นเปลือง</option>
							</select>
                                </div>
                        </div>

						<div class="control-group">
                                <label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ชื่อพัสดุ</label>
                                <div class="controls">
                                    <input type="text" id="inputName" class='span3' placeholder="Auto-Completed">
                                </div>
                        </div>
						<div class="control-group">
                                <label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> จำนวน</label>
                                <div class="controls">
                                    <input type="text" id="inputName" class='span1' placeholder="...">
                                </div>
                        </div>

                </form>			 
        </div>

        <div class="modal-footer">

                <button class="btn btn-primary">เพิ่ม</button>
                <button class="btn" data-dismiss="modal" aria-hidden="true">ยกเลิก</button>
                </form>

        </div>

</div> 
<!-- / Module: Popup --> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> รายการขอซื้อพัสดุ</h3>
			  <?php
							if ($_GET['admin']==1){
						?>
            <div class='tmp' style='float:right'>
                <a href="student_assign_cfm.php"><button class="btn btn-primary" tooltip="Add">อนุมัติ</button></a>
				 <a href="student_assign_cfm.php"><button class="btn btn-danger" tooltip="Add">ไม่อนุมัติ</button></a>
            </div>
			<?php }else{?>
			 <div class='tmp' style='float:right'>
                <a href="#popup" data-toggle="modal"><button class="btn btn-primary" tooltip="Add">เพิ่มรายการ</button></a>
				</div>
			 <?php } ?>
        </div>
        <!-- /  : Top Bar -->



        <!-- Pie: Content -->
        <div class="well no-padding" style="height:600px;">
			<div class="span12">
				<div class="row-fluid">
					<div class='span12'>
					<div class="control-group" style='border-bottom:0px;padding-bottom:10px;'>
								<label class="control-label" style='' for="inputName"><i class="icon-double-angle-right"></i>เลขที่คำขอซื้อ </label>
								<div class="controls">
									&nbsp;&nbsp;&nbsp;<span class="help-inline" style='font-weight:bold;'>: RQ560033</span>
								</div>
					 </div>
					 <?php
							if ($_GET['admin']==1){
						?>
					 <div class="control-group" style="border-bottom:0px;padding-bottom:10px;">
								<label class="control-label"  for="inputName"><i class="icon-double-angle-right"></i>ชื่อ-นามสกุล </label>
								<div class="controls">
									&nbsp;&nbsp;&nbsp;<span class="help-inline" style='font-weight:bold;'>:  นาย. มานะ ตั้งใจ</span>
								</div>
					 </div>
					 <?php }?>
				 
					<div class="control-group" style="padding-bottom:10px;">
						<label class="control-label" style='padding-top:5px;'><i class="icon-double-angle-right"></i>วันที่ขอซื้อ</label>
						<div class="controls">
							&nbsp;&nbsp;&nbsp; <span class="help-inline" style='font-weight:bold;'>: 12/12/2013</span>
							 
						</div>
						
					</div>
					</div>
					 
				</div>
			</div>
            <table class="table" >
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:20px;'>#</th>
                        <th style='color:#333 !important;' class='center'>ชื่อรายการพัสดุ</th>
						 
						 <th style='color:#333 !important;' class='center'>ประเภทพัสดุ</th>
					 
						<th style='color:#333 !important;width:150px;' class="center">จำนวน</th>
							  <?php	if ($_GET['admin']==1){	?>
						<th style='color:#333 !important;width:150px;' class="center">ในสต๊อก</th>
						<?php } else{?>
						<th style='color:#333 !important;width:90px;' class="center">ลบ</th>
						<?php }?>
                    </tr>
                </thead>
                <tbody>
                    <tr class="odd gradeX">
                        <td>1</td>
						<td  class='center'>เสื้อเชิ้ต S</td>
						<td  class='center'>สินค้า</td>
						 
						<td class='center'>10</td>
						<?php	if ($_GET['admin']==1){	?><td class='center' style='color:red;'>5</td>
						<?php } else{?>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						 </td>
						<?php }?>
                    </tr>
                    <tr class="even gradeC">
                         <td>2</td>
							<td  class='center'>เสื้อเชิ้ต S</td>
						<td  class='center'>สินค้า</td>
						 
						<td class='center'>10</td>
						<?php	if ($_GET['admin']==1){	?><td class='center'>100</td>
							<?php } else{?>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						 </td>
						<?php }?>
                    </tr>
					 
                    <tr class="odd gradeX">
                         <td>3</td>
						<td  class='center'>เสื้อเชิ้ต S</td>
						<td  class='center'>สินค้า</td>
						 
						<td class='center'>10</td>
						<?php	if ($_GET['admin']==1){	?><td class='center'>100</td>
							<?php } else{?>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						 </td>
						<?php }?>
                    </tr>
                     <tr class="even gradeC">
                          <td>4</td>
						<td  class='center'>เสื้อเชิ้ต S</td>
						<td  class='center'>สินค้า</td>
						 
						<td class='center'>10</td>
						<?php	if ($_GET['admin']==1){	?><td class='center'>100</td>
							<?php } else{?>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						 </td>
						<?php }?>
                    </tr>
				 
                    <tr class="odd gradeX">
                            <td>5</td>
						<td  class='center'>เสื้อเชิ้ต S</td>
						<td  class='center'>สินค้า</td>
						 
						<td class='center'>10</td>
						<?php	if ($_GET['admin']==1){	?><td class='center'>100</td>
							<?php } else{?>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						 </td>
						<?php }?>
                    </tr>
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>


</html>